home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000352_grinder@no.spam.maam.com_Sat Sep 1 12:48:12 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
2KB
|
66 lines
Article: 12736 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!howland.erols.net!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews4
From: "Grinder" <grinder@no.spam.maam.com>
Newsgroups: comp.protocols.kermit.misc
Subject: if exist
Date: Fri, 31 Aug 2001 18:48:31 -0500
Organization: http://extra.newsguy.com
Lines: 49
Message-ID: <9mp7sp0vm6@enews4.newsguy.com>
NNTP-Posting-Host: 216-166-242-124.grics.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12736
I'm re-writing an mskermit script for use with kermit-95. It's
gone very smoothly, with the exception of one command. Here's
the relevant portion of the script:
_____________
:CHECKCLAIM
pause 1
if exist c:\projects\rlisys\rlinsf31\cache\queue\*.zip goto
SENDCLAIM
goto SENDZERO
:SENDCLAIM
send queue\*.zip
if success goto SENDSUCCEED
echo \13\10<< Errors occurred while sending claims >>\13\10
goto SENDDONE
:SENDSUCCEED
move queue\*.zip sent
echo \13\10<< Claims have been sent >>\13\10
goto SENDDONE
:SENDZERO
echo \13\10<< No claims to send >>\13\10
:SENDDONE
pause 1
finish
output \13
_____________
The "if exist" command will always fail. It's my understanding
that the expression will return a file count, that functions as
a boolean (non-zero is true,) but can't see what I'm doing
wrong.
If I remove the check and just attempt to send the claims, it
works well, but I would rather have the explicit "no claims to
send" message given to the user.
I've tried using different path delimiters, using an absolute
path, and various other tweaks of the path, but for naught.
Can anyone see what I'm missing?
Thanks.